﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Forest.Web.Framework.Mvc;
using System.ComponentModel.DataAnnotations;
using Forest.Cat.Domain.Shared.Validation;

namespace Forest.Cat.Admin.Models.Resumes
{
    public class ResumeEditModel : BaseEntityModel
    {
        [Required(ErrorMessage = "简历名称必须输入!")]
        public string ResumeName { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string FullName { get; set; }

        /// <summary>
        /// 身份证号
        /// </summary>
        public string IDCard { get; set; }

        /// <summary>
        /// 出生日期
        /// </summary>
        public DateTime? BirthDate { get; set; }

        [Required(ErrorMessage = "出生日期必须输入!")]
        [DateTimeValidation(ErrorMessage = "日期的格式不正确，正确的格式是yyyy-MM-dd)")]
        public string BirthDateString { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public int Gender { get; set; }

        /// <summary>
        /// 当前年薪
        /// </summary>
        public int? CurrentRevenue { get; set; }

        /// <summary>
        /// 工作经验
        /// </summary>
        public int? YearsOfExperience { get; set; }

        /// <summary>
        /// 最高学历
        /// </summary>
        public int? EducationLevel { get; set; }

        /// <summary>
        /// 户籍所在地
        /// </summary>
        public int? Province1 { get; set; }

        public int? City1 { get; set; }

        public int? District1 { get; set; }

        /// <summary>
        /// 居住地
        /// </summary>
        public int? Province2 { get; set; }
        public int? City2 { get; set; }
        public int? District2 { get; set; }

        /// <summary>
        /// 详细地址
        /// </summary>
        public string Street2 { get; set; }

        /// <summary>
        /// 邮编
        /// </summary>
        public string PostalCode { get; set; }

        /// <summary>
        /// 最近公交路线
        /// </summary>
        public string BusLines { get; set; }

        /// <summary>
        /// 第一外语
        /// </summary>
        public int? Language1 { get; set; }
        public int? Level1 { get; set; }

        /// <summary>
        /// 第二外语
        /// </summary>
        public int? Language2 { get; set; }
        public int? Level2 { get; set; }

        /// <summary>
        /// 固定电话
        /// </summary>
        public string Tel { get; set; }

        /// <summary>
        /// 移动电话
        /// </summary>
        [Required(ErrorMessage = "移动电话必须输入!")]
        public string Mobile { get; set; }

        /// <summary>
        /// 电子邮件
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 个人网站
        /// </summary>
        public string PersonalSite { get; set; }

        public int PrivacyStatus { get; set; }
    }
}